import os

flag = b'flag{123456}'


def get_key(n):
    keys = [os.urandom(6) for i in range(n)]
    return keys


def encrypt(keys, flag):
    for key in keys:
        flag1 = []
        for p, q in zip(flag, key * (len(flag) + 6 // 6)):
            tmp = p ^ q
            print(p, q)
            flag1.append(tmp)
            flag = bytes(flag1)
        print()
    return flag


keys = get_key(2024)
print(encrypt(keys, flag).hex())

# 30dadab11bdf64858fab
